﻿<%@ Page Title="Отправка почты" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Mail.aspx.cs" Inherits="DepartmentOnline.Mail" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <article>
        <div class="grid">
            <div class="row">
                    <asp:Label ID="Label1" runat="server" Text="Кому" Width="60"/>
                <asp:DropDownList ID="DestDD" runat="server" DataSourceID="EntityDataSource1" DataTextField="Fio" DataValueField="Email"></asp:DropDownList>
            </div>
            <div class="row">
                    <asp:Label ID="Label2" runat="server" Text="От" Width="60"/>
                <asp:TextBox ID="FromTB" runat="server"></asp:TextBox>
            </div>
            <div class="row">
                    <asp:Label ID="Label5" runat="server" Text="Пароль" Width="60"/>
                <asp:TextBox ID="PassTB" runat="server" TextMode="Password"></asp:TextBox>
            </div>
            <div class="row">
                    <asp:Label ID="Label3" runat="server" Text="Тема" Width="60"/>
               <asp:TextBox ID="Topic" runat="server"></asp:TextBox>
            </div>
            <div class="row">
                <asp:Label ID="Label4" runat="server" Text="Сообщение" /><br />
                <asp:TextBox ID="MessageTB" runat="server" TextMode="MultiLine"></asp:TextBox>
            </div>
            <div class="row">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                      <asp:Button ID="SendBtn" runat="server" Text="Послать" OnClick="SendMessage"/>&nbsp;<asp:Label ID="StatusLb" runat="server" Text="Ожидается отправка"/>
                    </ContentTemplate>
                </asp:UpdatePanel></div>
            
        </div>
    </article>
    <aside>
    </aside>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=departmentEntities" DefaultContainerName="departmentEntities" EnableFlattening="False" EntitySetName="Instructors" EntityTypeFilter="Instructor">
    </asp:EntityDataSource>
</asp:Content>
